﻿@using HouseHoldBudget.App_GlobalResources
@using HouseHoldBudget.Framework.Mvc.Helpers
@using HouseHoldBudget.Models.Common
<!doctype html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />

    <!-- Styles -->
    @Helpers.Style(Url.Style(StyleCategory.Root, "Reset"))
    @Helpers.Style(Url.Style(StyleCategory.Root, "Site"))
    @Helpers.Style(Url.Style(StyleCategory.View, "_Layout"))
    @Helpers.Style(Url.Style(StyleCategory.KendoUI, "kendo.uniform.min"))
    @Helpers.Style(Url.Style(StyleCategory.KendoUI, "kendo.rtl.min"))
    @Helpers.Style(Url.Style(StyleCategory.KendoUI, "kendo.dataviz.uniform"))
    @Helpers.Style(Url.Style(StyleCategory.KendoUI, "kendo.common.min"))

    <!-- Scripts -->
    @Helpers.Script(Url.Script(ScriptCategory.KendoUI, "jquery.min"))
    @Helpers.Script(Url.Script(ScriptCategory.KendoUI, "kendo.all.min"))
    @Helpers.Script(Url.Script(ScriptCategory.KendoUI, "kendo.aspnetmvc.min"))
    @Helpers.Script(Url.Script(ScriptCategory.KendoUI, "cultures\\kendo.culture.fr-FR.min"))
    @Helpers.Script(Url.Script(ScriptCategory.Root, "common"))
                    
    <script type="text/javascript">
        kendo.culture("fr-FR");
    </script>
</head>
<body>
    <div class="page">
        <header>
            @Html.Partial("_LogOnPartial")
            <h2>
                <a href="@Url.Home()">@Helpers.Image(Url.Image("applicationImage.png"), "Portail de gestion de budget")&nbsp;&nbsp;@CustomResources.ApplicationTitle</a>
            </h2>
        </header>
        <section id="main">
            <div class="master-wrapper-page">
                <div class="master-wrapper-content">
                    @if (IsSectionDefined("headermenu"))
                    {
                        @RenderSection("headermenu")
                    }
                    else
                    {
                        <div class="header-menu">
                            @Html.Partial("Menu", new MenuModel())
                        </div>
                    }
                </div>
                <div class="content">
                    <div class="cph">
                        @RenderBody()
                    </div>
                </div>
            </div>
        </section>
        <footer>
        </footer>
    </div>

</body>
</html>
